package file;



import java.io.File;

public class FIleDemo {
    public static void main(String[] args) {
        File file = new File("./de.txt");
        String name = file.getName();
        System.out.println(name);
        long len = file.length();
        System.out.println("length:" + len);
        boolean is = file.isFile();
        boolean ee = file.canWrite();
        System.out.println(is);
        System.out.println(ee);
        File TT = new File("re.tpo");
        String we = TT.getName();
        System.out.println(we);
        long le = TT.length();
        System.out.println(le);
    }
}
